<?php
/**
 * Created by PhpStorm.
 * User: xlosy
 * Date: 2018/3/25
 * Time: 19:12
 */

namespace app\index\model;


use think\Model;

class Type extends Model
{
    public function get_type_list_by_subClass_id($subClass_id){
        return Type::all(['isUse'=> '1','subclass_id'=>$subClass_id]);
    }

    public function get_type_list(){
        return Type::all(['isUse'=> '1']);
    }
}